package com.longxiao.service.util;

import java.math.BigDecimal;
import java.text.DecimalFormat;

public class DecimalUtil {

	public static final String DECIMAL_FORMAT = "###.##";
	
	public static final BigDecimal ZERO = new BigDecimal("0");
	
	private static DecimalFormat format = new DecimalFormat(DECIMAL_FORMAT);
	
	public static String format(double num) {
		return getFormat().format(num);
	}
	
	public static DecimalFormat getFormat() {
		return format;
	}
}
